package com.xbts.common.core.web.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;


/**
 * 数据库基础实体类
 *
 * @author Chopper
 * @version v1.0
 * @since 2020/8/20 14:34
 */
@JsonIgnoreProperties(value = {"handler", "fieldHandler"})
public abstract class BaseIdEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private String id;

    @TableField(exist = false)
    @JsonIgnore
    private String keyWord;

    public BaseIdEntity() {
    }

    public BaseIdEntity(String id) {
        this.id = id;
    }
    public BaseIdEntity(String id, String keyWord) {
        this.id = id;
        this.keyWord = keyWord;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }
}
